from parameterized import parameterized

from api.ihrm_login_api import IHRMlogin
from common.data_add_json import data_add_json
from common.ihrm_login_assert import Test_ihrm
from config import BASE_DIR


class Test_HM:
    path = BASE_DIR + "/data/homework_login"
    @parameterized.expand(data_add_json(path))
    def test_hw(self,body,stautes_code,success,code,message):
        req=IHRMlogin.irhm_login(body)
        Test_ihrm.test_assert(req,stautes_code,success,code,message)



